package com.sword.cases.decorater;

/**
 * Created by SwordLiu on 2017-05-09.
 */
public class Decorator implements SourceAble {

    private SourceAble source;

    public Decorator(SourceAble source) {
        this.source = source;
    }

    public void method() {
        System.out.println("befor decorator.");
        source.method();
        System.out.println("after decorator.");
    }
}
